package module.mapper;

import module.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import module.MyMapper;

public interface UserMapper extends MyMapper<User> {

    @Select("SELECT * FROM user WHERE user_name=#{user_name}")
    User getUserByUsernaume(String username);

    @Select("SELECT * FROM user WHERE id=#{id}")
    User getUserById(Integer id);
}
